<br /><br />

<?php  
$collections= $this->collections; ?>
<?php if($collections==null):?>
<p> Nothing Found!</p>

<?php else :?>
<table  border="1">
<tr><td colspan=4>Total of Collections:<span class="total"> <?php echo $this->total; ?></span></td></tr>
<tr><th>Id</th><th>Name</th><th># items</th></tr>
<?php 
	foreach ($collections as $collection):
?>
	<tr><td><?php echo $collection["id"]?></td><td><?php echo $collection["name"]?></td><td width="70px"><?php echo $collection["num_items"]?></td>
	<?php if($collection["num_items"]>0):?>
	<td><form action="/ItemManager/getitems" method="post">
			<input type="hidden"  name="path" value="<?php echo $collection["items_uri"]?>" />
			<input type="submit" value="View this Collection" />
	
	</form></td>
	<?php endif;?></tr>

<?php 
endforeach;?>
</table>
<?php endif;?>